package com.kingyun.gpsinspection.purificationservice.dao.mapper.iam.adm;


import com.kingyun.gpsinspection.purificationservice.facade.model.iam.adm.KnowledgeTag;

public interface KnowledgeTagMapper {
    /**
     * 根据tagId删除标签
     * @param tagId
     * @return
     */
    int deleteByPrimaryKey(String tagId);

    /**
     * 根据知识库id删除标签
     * @param knowledgeId
     * @return
     */
    int deleteByKnowledgeId(String knowledgeId);

    /**
     * 插入
     * @param record
     * @return
     */
    int insertSelective(KnowledgeTag record);

    /**
     * 查询
     * @param tagId
     * @return
     */
    KnowledgeTag selectByPrimaryKey(String tagId);

    /**
     * 更新
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(KnowledgeTag record);

}